using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;

namespace WPF
{
	public partial class MyControl : Control
	{
		public string Request
		{
			get { return (string)GetValue(RequestProperty); }
			set { SetValue(RequestProperty, value); }
		}

		public static DependencyProperty RequestProperty =
			DependencyProperty.Register(
				"Request",
				typeof(string),
				typeof(MyControl), new PropertyMetadata(""));

		public int Number
		{
			get { return (int)GetValue(NumberProperty); }
			set { SetValue(NumberProperty, value); }
		}

		public static DependencyProperty NumberProperty =
			DependencyProperty.Register(
				"Number",
				typeof(int),
				typeof(MyControl), new PropertyMetadata(0));
	}
}
